package
{
	import fl.controls.Button;
	import fl.controls.Label;
	import fl.controls.TextInput;
	
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.events.MouseEvent;

	public class SenderSample extends Sprite
	{
		public var btn0: Button;
		public var btn1: Button;
		public var btn2: Button;
		public var btn3: Button;
		
		public var lebelTxt: TextInput;
		
		public function SenderSample()
		{
			this.addEventListener( MouseEvent.CLICK, clickEH );
			
			this.lebelTxt.text = "0";
		}
		
		private function clickEH ( e: MouseEvent ): void
		{
			switch ( e.target )
			{
				case this.btn0:
					Debuger.init( " 시작을 알림니다 " );
					break;
				
				case this.btn1:
					Debuger.log( " 기본 텍스트  " );
					break;
								
				case this.btn2:
					Debuger.error( " 에러입니다   " );
					break;
				
				case this.btn3:
					Debuger.log( "기본텍스트",Number ( this.lebelTxt.text ) );
					break;
				
			}
		}
	}
}